Mason's gain formula